package innerclass;

class Egg{

	protected Yolk y;
	
	protected class Yolk{
		public Yolk(){
			System.out.println("Egg.Yolk()");
		}
	}
	
	public Egg(){
		System.out.println("new Egg");
		y = new Yolk();
	}
	
}

public class BigEgg extends Egg {
	
	public class Yolk{
		public Yolk(){
			System.out.println("BigEgg.Yolk()");
		}
	}
	
	public BigEgg(){
		System.out.println("new BigEgg");
		System.out.println("_________");
		y = new Egg.Yolk();
		System.out.println("_________");
		Yolk y2 = new Yolk();
	}
	
	public static void main(String[] args) {
		new BigEgg();
	}
}


